/**
 * jims
 */
package com.jims.master.modules.patient.myRecord.entity;

import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

/**
 * 同步his处方详情Entity
 * @author chent
 * @version 2017-09-20
 */
public class CasePrescriptionDetails extends DataEntity<CasePrescriptionDetails> {
	
	private static final long serialVersionUID = 1L;
	private String drugCode;		// drug_code
	private String unit;		// unit
	private String spec;		// spec
	private String administration;		// administration
	private String num;		// num
	private String packageSpec;		// package_spec
	private String drugName;		// drug_name
	private String freqDesc;		// freq_desc
	private String packageUnit;		// package_unit
	private String applyId;		// apply_id
	private String firmName;		// firm_name
	
	public CasePrescriptionDetails() {
		super();
	}

	public CasePrescriptionDetails(String id){
		super(id);
	}

	@Length(min=0, max=64, message="drug_code长度必须介于 0 和 64 之间")
	public String getDrugCode() {
		return drugCode;
	}

	public void setDrugCode(String drugCode) {
		this.drugCode = drugCode;
	}
	
	@Length(min=0, max=10, message="unit长度必须介于 0 和 10 之间")
	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}
	
	@Length(min=0, max=10, message="spec长度必须介于 0 和 10 之间")
	public String getSpec() {
		return spec;
	}

	public void setSpec(String spec) {
		this.spec = spec;
	}
	
	@Length(min=0, max=10, message="administration长度必须介于 0 和 10 之间")
	public String getAdministration() {
		return administration;
	}

	public void setAdministration(String administration) {
		this.administration = administration;
	}
	
	@Length(min=0, max=10, message="num长度必须介于 0 和 10 之间")
	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}
	
	@Length(min=0, max=10, message="package_spec长度必须介于 0 和 10 之间")
	public String getPackageSpec() {
		return packageSpec;
	}

	public void setPackageSpec(String packageSpec) {
		this.packageSpec = packageSpec;
	}
	
	@Length(min=0, max=10, message="drug_name长度必须介于 0 和 10 之间")
	public String getDrugName() {
		return drugName;
	}

	public void setDrugName(String drugName) {
		this.drugName = drugName;
	}
	
	@Length(min=0, max=10, message="freq_desc长度必须介于 0 和 10 之间")
	public String getFreqDesc() {
		return freqDesc;
	}

	public void setFreqDesc(String freqDesc) {
		this.freqDesc = freqDesc;
	}
	
	@Length(min=0, max=10, message="package_unit长度必须介于 0 和 10 之间")
	public String getPackageUnit() {
		return packageUnit;
	}

	public void setPackageUnit(String packageUnit) {
		this.packageUnit = packageUnit;
	}
	
	@Length(min=0, max=64, message="apply_id长度必须介于 0 和 64 之间")
	public String getApplyId() {
		return applyId;
	}

	public void setApplyId(String applyId) {
		this.applyId = applyId;
	}
	
	@Length(min=0, max=20, message="firm_name长度必须介于 0 和 20 之间")
	public String getFirmName() {
		return firmName;
	}

	public void setFirmName(String firmName) {
		this.firmName = firmName;
	}
	
}